<%@page import="net.bitacademy.java23.vo.Photo"%>
<%@page import="java.util.List"%>
<%@page import="net.bitacademy.java23.vo.Center"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
Center center = (Center) request.getAttribute("center");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>교육장 상세정보</title>
</head>
<body>
번호: <%=center.getCenterNo()%><br>
교육장이름: <%=center.getName()%><br>
전화: <%=center.getTel()%><br>
주소: <%=center.getAddr()%><br>
<%
Photo photo = null;
List<Photo> photoList = center.getPhotoList();
for (int i = 0; i < photoList.size(); i++) {
	photo = photoList.get(i); %>
<img src="../upload/<%=photo.getFilePath()%>" width="60" height="100">
<%}%>
<br>
<a href='list.do'>목록</a>
<a href='updateForm.do?no=<%=center.getCenterNo()%>'>변경</a>
<a href='delete.do?no=<%=center.getCenterNo()%>'>삭제</a>

</body>
</html>






